/**
 * 
 */
package com.jm.web.data;

import java.util.Vector;

import net.sf.json.JSONObject;

/**
 * @author yanjie
 *
 * 2011/10/10 上午10:18:23
 */
public class FormItemError {
	
	protected String strFormItemId = "";
	protected String strErrorInfo = "";
	
	public FormItemError()
	{
		
	}
	
	/**
	 * 获取表单项编号
	 * @return
	 */
	public String getFormItemId()
	{
		return this.strFormItemId;
	}
	
	/**
	 * 设置表单项编号
	 * @param strFormItemId
	 */
	public void setFormItemId(String strFormItemId)
	{
		this.strFormItemId = strFormItemId;
	}
	
	

	/**
	 * 获取表单项错误信息
	 * @return
	 */
	public String getErrorInfo()
	{
		return this.strErrorInfo;
	}
	
	/**
	 * 设置表单项错误信息
	 * @param strErrorInfo
	 */
	public void setErrorInfo(String strErrorInfo)
	{
		this.strErrorInfo = strErrorInfo;
	}
	
	
	/**
	 * 填充到JSON对象
	 * @param vector
	 * @return
	 */
	public boolean FillJSONs(Vector vector)
	{
		JSONObject obj = new JSONObject();
		obj.put("id", strFormItemId);
		obj.put("info", strErrorInfo);
		vector.add(obj);
		return true;
	}

}
